Determine if one value is less than another with the < operator.
def less_than(val1, val2):
result = val1 < val2
return result
Function Call | Return Value | |||
---|---|---|---|---|
less_than(4, 6) | → | |||
less_than(8, 12) | → | |||
less_than(19, 19) | → | |||
less_than(12, 8) | → | |||
less_than(11, 28) | → |
Experiment with this code on Gitpod.io